fix(agent): use agent image for initcontainer #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
IMPORTANT: Please do not create a Pull Request without creating an issue first.
Problem:
The dhcp-agent pod's init container is using the
docker.io/library/busybox:latest
image. The image is not packed in the ISO image we shipped, so it'll cause trouble when users enable the harvester-vm-dhcp-controller add-on in air-gapped Harvester clusters.Solution:
Instead of using
docker.io/library/busybox:latest
to configure the dhcp-agent pod's IP address, usedocker.io/rancher/harvester-vm-dhcp-agent:<tag>
as the new image. Because of that, we need to add theiproute2
package into the agent image.Related Issue:
harvester/harvester#6942
Test plan:
AgentReady
one